diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-28 12:13:31 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-28 12:13:31 +0200 |
| commit | 45cc0afb734a422ee7765dc5c60dccbcc6721367 (patch) | |
| tree | ff832117b55fbc7a7ee36f822d9f68e39bb6ba01 /src/routes/grocery/[id]/+page.server.ts | |
| parent | 329ab5a990df5e460afa31094e5e827c9743565b (diff) | |
feat: warm redesign, full French localization, compact sticky form, fixed row heights, and show quality score in list
Diffstat (limited to 'src/routes/grocery/[id]/+page.server.ts')
| -rw-r--r-- | src/routes/grocery/[id]/+page.server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/grocery/[id]/+page.server.ts b/src/routes/grocery/[id]/+page.server.ts index e434e9f..b19825a 100644 --- a/src/routes/grocery/[id]/+page.server.ts +++ b/src/routes/grocery/[id]/+page.server.ts @@ -8,7 +8,7 @@ export const load: PageServerLoad = async ({ params }) => { const id = Number(params.id); const [item] = await db.select().from(groceries).where(eq(groceries.id, id)); - if (!item) throw error(404, 'Item not found'); + if (!item) throw error(404, 'Article introuvable'); const [cat] = item.categoryId ? await db @@ -40,7 +40,7 @@ export const actions: Actions = { const qualityScore = data.get('quality_score')?.toString().trim(); if (!reference) { - return fail(400, { error: 'Reference is required' }); + return fail(400, { error: 'La référence est requise' }); } await db.insert(references).values({ |
